package com.tjetc.domian;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Maintenancerequest  implements Serializable {
    @Serial
    private static final long serialVersionUID = -2862050110883982341L;
    private Integer requestid;

    private Integer residentid;

    private Integer apartmentid;

    private Date requestdate;

    private Date requesttime;

    private String description;

    private String status;

    private Resident resident;
    



    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Maintenancerequest that = (Maintenancerequest) o;
        return getResidentid().equals(that.getResidentid()) &&
                getApartmentid().equals(that.getApartmentid()) &&
                getRequestdate().equals(that.getRequestdate()) &&
                getRequesttime().equals(that.getRequesttime()) &&
                getDescription().equals(that.getDescription()) &&
                getStatus().equals(that.getStatus());
    }
}